﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Error : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        AddLog();
    }
    protected Boolean AddLog()
    {
        try
        {
            string title = Request.QueryString["title"].ToString();
            string content = Request.QueryString["content"].ToString();
            string userName = Session["userName"].ToString();
            Log tempLog = new Log();
            tempLog.AddDate = DateTime.Now;
            tempLog.Status = "0";
            tempLog.Title = title;
            tempLog.Content = content;
            tempLog.UserName = userName;
            tempLog.AddLog();
            return true;
        }
        catch
        {
            return false; 
        }
        
    }
}
